]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Bug 563394 - revert change to run overlay key in idle
authorColin Walters <walters@src.gnome.org>
Wed, 7 Jan 2009 22:19:46 +0000 (22:19 +0000)
committerColin Walters <walters@src.gnome.org>
Wed, 7 Jan 2009 22:19:46 +0000 (22:19 +0000)
This was likely a different bug, possibly the OOM after a period of time.
It seems reliable for me now without the idle.

svn path=/trunk/; revision=140

js/ui/main.js

index fb07085fb0d78f78e44ddc83143a80b1d1a69cfb..b957f0b17df3e64a3ccca9b0d2344e7a5ca3977e 100644 (file)
@@ -124,16 +124,11 @@ function start() {
     
     let display = global.screen.get_display();
     display.connect('overlay-key', function(display) {
-        // Queue an idle for this, because we're getting called
-        // out of a metacity event handler, and doing a lot of
-        // work from inside there is...iffy.
-        Mainloop.idle_add(function () {
-            if (overlay.visible) {
-                hide_overlay();
-            } else {
-                show_overlay();
-            }
-        });
+        if (overlay.visible) {
+            hide_overlay();
+        } else {
+            show_overlay();
+        }
     });
 }